package com.ls.springbootfast.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther Administrator
 * @create.2021/9/8
 */
@RestController
public class HelloController {
    @Value("${people.name}")
    private String name;
    @Value("${people.age}")
    private int age;
    @RequestMapping("/hello1")
    public String hello(){
        return "hello1";
    }

    @RequestMapping("/hello2")
    public String hello1(){
        return "访问成功"+"name:"+name+"  "+"age:"+age;
    }
}
